home *** CD-ROM | disk | FTP | other *** search
/ Kompuutteri Kaikille K-CD 2002 #10 / K-CD_2002-10.iso / Serious Sam II / Scripts / GLSettings / Initial.ini < prev    next >
Text File  |  2001-11-23  |  3KB  |  126 lines

  1.  
  2. // set all rendering console variables to initial values
  3.  
  4. Echo( "GLSET: Initial setup.\n");
  5.  
  6. gap_iUseTextureUnits = 4;
  7. gap_bOptimizeStateChanges = 1;
  8. gap_iOptimizeDepthReads = 1;
  9. gap_iOptimizeClipping = 2;
  10. gap_bAllowGrayTextures = 1;
  11. gap_bAllowSingleMipmap = 1;
  12. gap_iTextureFiltering  = 21;
  13. gap_iTextureAnisotropy = 1;
  14. gap_fTextureLODBias    = 0;
  15. gap_iSwapInterval = 0;
  16. gap_iRefreshRate  = 0;
  17. gap_bForceTruform = 0;
  18. gap_iTruformLevel = 3;
  19. gap_iDithering = 2;
  20.  
  21. ogl_bUseCompiledVertexArrays = 101;
  22. ogl_bExclusive = 1;
  23. ogl_bAllowQuadArrays = 1;
  24. ogl_iMaxBurstSize = 0;
  25. ogl_iTextureCompressionType = 1;
  26. ogl_bTruformLinearNormals = 1;
  27. ogl_iFinish = 1;
  28.  
  29. d3d_bUseHardwareTnL = 1;
  30. d3d_bAlternateDepthReads = 0;
  31. d3d_bOptimizeVertexBuffers = 0;
  32. d3d_iVertexBuffersSize = 512;
  33. d3d_iVertexRangeTreshold = 99;
  34. d3d_iMaxBurstSize = 21;
  35. d3d_iFinish = 0;
  36.  
  37. mdl_fLODMul = 1;
  38. mdl_fLODAdd = 0;
  39. mdl_iLODDisappear = 1;
  40. mdl_bRenderDetail = 1;
  41. mdl_bRenderSpecular = 1;
  42. mdl_bRenderReflection = 1;
  43. mdl_bFineQuality = 1;
  44. mdl_iShadowQuality = 1;
  45.  
  46. if( sys_strModExt=="") {
  47.   // no overbrighting on models in original SSam
  48.   mdl_bAllowOverbright = 0;
  49. } else {
  50.   // everything else goes!
  51.   mdl_bAllowOverbright = 1;
  52. }
  53.  
  54. wld_iDetailRemovingBias = 3;
  55. wld_bTextureLayers = 111;
  56. wld_bRenderMirrors = 1;
  57.  
  58. tex_iNormalQuality    = 0;
  59. tex_iAnimationQuality = 11;
  60. tex_bFineEffect = 0;
  61. tex_bFineFog    = 1;
  62. tex_iNormalSize    = 9;
  63. tex_iAnimationSize = 7;
  64. tex_iEffectSize    = 8;
  65. tex_iFogSize       = 7;
  66. tex_iDithering = 3;
  67. tex_iFiltering = -2;
  68. tex_iEffectFiltering = 4;
  69. tex_bProgressiveFilter = 0;
  70. tex_bCompressAlphaChannel = 0;
  71. tex_bAlternateCompression = 0;
  72. tex_bDynamicMipmaps = 1;
  73.  
  74. shd_iStaticSize  = 8;
  75. shd_iDynamicSize = 7;
  76. shd_bFineQuality = 1;
  77. shd_iFiltering = 3;
  78. shd_iDithering = 1;
  79. shd_iAllowDynamic = 1;
  80. shd_bDynamicMipmaps = 1;
  81. shd_bCacheAll = 0;
  82. shd_bAllowFlats = 1;
  83.  
  84. gfx_iLensFlareQuality = 3;
  85. gfx_bClearScreen = 0;
  86. gfx_bDisableMultiMonSupport = 1;
  87. gfx_tmProbeDecay = 60;
  88. gfx_fProbeRatio  = 0.5;
  89.  
  90. gam_bPretouch = 0;
  91.  
  92. // must re-init because of old SSam doesn't support these two
  93. persistent extern user FLOAT gfx_fEnvParticlesDensity = 1.0;
  94. persistent extern user FLOAT gfx_fEnvParticlesRange   = 1.0;
  95.  
  96.  
  97. // setup memory size
  98.  
  99. extern INDEX iQualityIndex = 0;  // undetermined
  100.  
  101.  
  102. if( sys_iRAMPhys>230)
  103. {
  104.   iQualityIndex = 5;   // >224 MB, 64MB video
  105. }
  106.  
  107. else if( sys_iRAMPhys>180)
  108. {
  109.   iQualityIndex = 4;   // 192-224 MB, 32MB video
  110. }
  111.  
  112. else if( sys_iRAMPhys>100)
  113. {
  114.   iQualityIndex = 3;   // 128-192 MB, 16 MB video
  115. }
  116.  
  117. else if( sys_iRAMPhys>60)
  118. {
  119.   iQualityIndex = 2;   // 64-96 MB, 4-8 MB video
  120. }
  121.  
  122. else
  123. {
  124.   iQualityIndex = 1;   // <64 MB, <4 MB video
  125. }
  126.